package com.lee.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {


    @GetMapping("/getInfo")
    public String getInfo(@RequestParam("type") Integer type) throws InterruptedException {
        Thread.sleep(3000);
        int i = 1/type;
        return "ok";
    }
}
